package cemp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @TableName stock_ths_gn_stocks
 */
@TableName(value ="stock_ths_gn_stocks")
public class StockThsGnStocks implements Serializable {
    private Integer id;

    private String stockCode;

    private String stockName;

    private String createTime;

    private String gnCode;

    private Integer gnRank;

    private BigDecimal per;

    private BigDecimal pbr;

    private BigDecimal totalCapital;

    private BigDecimal volRatio;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getGnCode() {
        return gnCode;
    }

    public void setGnCode(String gnCode) {
        this.gnCode = gnCode;
    }

    public Integer getGnRank() {
        return gnRank;
    }

    public void setGnRank(Integer gnRank) {
        this.gnRank = gnRank;
    }

    public BigDecimal getPer() {
        return per;
    }

    public void setPer(BigDecimal per) {
        this.per = per;
    }

    public BigDecimal getPbr() {
        return pbr;
    }

    public void setPbr(BigDecimal pbr) {
        this.pbr = pbr;
    }

    public BigDecimal getTotalCapital() {
        return totalCapital;
    }

    public void setTotalCapital(BigDecimal totalCapital) {
        this.totalCapital = totalCapital;
    }

    public BigDecimal getVolRatio() {
        return volRatio;
    }

    public void setVolRatio(BigDecimal volRatio) {
        this.volRatio = volRatio;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StockThsGnStocks other = (StockThsGnStocks) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStockCode() == null ? other.getStockCode() == null : this.getStockCode().equals(other.getStockCode()))
            && (this.getStockName() == null ? other.getStockName() == null : this.getStockName().equals(other.getStockName()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getGnCode() == null ? other.getGnCode() == null : this.getGnCode().equals(other.getGnCode()))
            && (this.getGnRank() == null ? other.getGnRank() == null : this.getGnRank().equals(other.getGnRank()))
            && (this.getPer() == null ? other.getPer() == null : this.getPer().equals(other.getPer()))
            && (this.getPbr() == null ? other.getPbr() == null : this.getPbr().equals(other.getPbr()))
            && (this.getTotalCapital() == null ? other.getTotalCapital() == null : this.getTotalCapital().equals(other.getTotalCapital()))
            && (this.getVolRatio() == null ? other.getVolRatio() == null : this.getVolRatio().equals(other.getVolRatio()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStockCode() == null) ? 0 : getStockCode().hashCode());
        result = prime * result + ((getStockName() == null) ? 0 : getStockName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getGnCode() == null) ? 0 : getGnCode().hashCode());
        result = prime * result + ((getGnRank() == null) ? 0 : getGnRank().hashCode());
        result = prime * result + ((getPer() == null) ? 0 : getPer().hashCode());
        result = prime * result + ((getPbr() == null) ? 0 : getPbr().hashCode());
        result = prime * result + ((getTotalCapital() == null) ? 0 : getTotalCapital().hashCode());
        result = prime * result + ((getVolRatio() == null) ? 0 : getVolRatio().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", stockCode=").append(stockCode);
        sb.append(", stockName=").append(stockName);
        sb.append(", createTime=").append(createTime);
        sb.append(", gnCode=").append(gnCode);
        sb.append(", gnRank=").append(gnRank);
        sb.append(", per=").append(per);
        sb.append(", pbr=").append(pbr);
        sb.append(", totalCapital=").append(totalCapital);
        sb.append(", volRatio=").append(volRatio);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}